﻿using System;
using System.Collections.Generic;
using System.Text;
using FunctionalCLR;
using FunctionalCLR.Core;

namespace FunctionalCLR.Core.Functoin.String {
    public class LengthNode : FuncNode {

        public LengthNode()
            : base() {
            base.Value = "length";
        }

        public override FuncNode GetReversedFunction(int index) {
            throw new NotImplementedException();
        }

        public override object Evaluate() {
            return this.Value.Length.ToString();
        }
    }
}
